package com.ling.pl.demo.service;

import com.ling.pl.demo.model.BaseDemo;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

@FeignClient("LING-CLOUD-PL-BASE-SERVICE")
@RequestMapping(value = "/demoCloud")
public interface DemoCloudService {

    @RequestMapping(value = "/findByList", method = RequestMethod.GET)
    List<BaseDemo> findDemoByList(@RequestParam Map params) throws Exception;
}
